Skip to main content

How to use Storage Service

The src/services/StorageService.ts file contains methods that are helpful when storing data in the local storage.

Be advised, the localstorage from a website and a local storage from an extension are different things.

Save Data

Use the setStorageData method with the first parameter as key and on the second parameter send the data you want to save. It is recommended to use a fixed model and send the payload through the model.

Get Data

Use the getStorageData method to get already stored data. Use the same key as first parameter that was used to store the data.